/*
   Copyright (c) 2023 李伟国
   learner-platform is licensed under Mulan PSL v2.
   You can use this software according to the terms and conditions of the Mulan PSL v2. 
   You may obtain a copy of Mulan PSL v2 at:
               http://license.coscl.org.cn/MulanPSL2 
   THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.  
   See the Mulan PSL v2 for more details. 
*/

package cn.platform.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;

import java.util.Date;

@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
@TableName(value = "essay_essay")
public class Essay {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    @TableField(value = "headline")
    private String headline;
    @TableField(value = "cover_url")
    private String coverUrl;
    @TableField(value = "summarize")
    private String summarize;
    @TableField(value = "content")
    private String content;  // 内容
    @TableField(value = "categories")
    private String categories;  // 类别 文章、题解
    @TableField(value = "labels")
    private String labels;  // 标签
    @TableField(value = "classifications")
    private String classifications; // 所属分类
    @TableField(value = "type")
    private String type;  // 类别
    @TableField(value = "status")
    private String status;  // 状态
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;  // 创建时间
    @TableField(value = "release_time")
    private Date releaseTime; // 发布时间
    @TableField(value = "author_id")
    private Long authorId;
    @TableField(value = "like_no")
    private Integer likeNo;
    @TableField(value = "unlike_no")
    private Integer unlikeNo;
    @TableField(value = "collection_no")
    private Integer collectionNo;
    @TableField(value = "views_no")
    private Integer viewsNo;
    @TableField(value = "comments_no")
    private Integer commentsNo;
}
